home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48_2
/
usnd3.dk
< prev
next >
Wrap
Text File
|
1995-03-07
|
8KB
|
227 lines
BEGIN_DOC usnd3.doc
USND.LIB v3.0 (Library #1698)
Universal IR Send and Receive
Version 3.0, March 1994
by Dan Kirkland
Version 3.0 works on HP48 versions S/SX/G/GX.
Version 3.0 does not work with earlier versions.
If you have earlier versions, you should upgrade to
version 3.0.
USND.LIB is a library with the commands USEND and URECV.
USEND and URECV are fast, all purpose, IR send and receive
commands for FAST IR data transfer between two HP48's.
With USEND and URECV, you can send objects directly from
the stack without storing them in a variable.
Try putting a library on stack level one and sending it!
You must use USEND on the sending HP48 and URECV on the
receiving HP48.
USEND and URECV are typically 4+ times faster than the HP48
SEND and RECV commands.
INSTALLING USND3.LIB
Transfer USND3.LIB to your HP48.
Recall the library from the USND3.LIB variable to the stack.
Enter the port number were you want to store USND3.LIB and
press STO .
Turn the HP48 off and back on again to allow USND3.LIB to
attach.
Purge the USND3.LIB variable.
To get to USND3, press the shifted LIBRARY key then press
the USND softkey.
REMOVING USND3.LIB
Go to the HOME directory.
Enter 1698 and execute DETACH .
Enter 1698 tagged with the port number which USND3.LIB
is stored and execute PURGE. ( or :&:1698 PURGE)
USEND USAGE
USEND will send ANY type object from stack level one.
USEND uses flag #1 (user flag).
With flag #1 clear (no 1 in the status area).
Defined variables (both global and local variables that have
something 'stored' in them) are sent and stored in the current
directory on the receiving HP48.
Undefined variable names will be sent and left on the stack
of the receiving HP48.
SENDING LISTS
The objects in a list will be sent separatly and defined
variables in the list will be stored in the current directory.
To send a list as an complete object, either put the list as
an object in another list or set flag #1 (see below).
Defined variable names nested inside two or more list will
be sent as as names in a list. The object stored in the
variable will not be sent.
Only defined variable names are stored in the current
directory, all other objects are left on the stack of the
receiving HP48.
With flag #1 set (a 1 showing in the status area).
Stack level one object sent as is to stack level one of the
receiving HP48.
This means that all variable names will be sent as variable
names only.
Lists will be sent as one complete object.
The receiving HP48 will receive to stack level one exactly
what was sent from level one of the sending HP48.
URECV USAGE
Just execute URECV on the receiving HP48.
URECV does NOT use any flags (flag #1 only needed for USEND).
SAMPLE PROGRAMS
SSTK (Send Stack) BYTES: # F386h 30.5
(SSTK will send the entire stack from one HP48 to
another AS IS.)
Arguments: obj#n ... obj#1 #n ->
<<
1 SF
DEPTH
->LIST
USEND
1 CF
>>
RSTK (Recv Stack) BYTES: # 11BEh 20.5
Arguments: -> obj#n ... obj#1
<<
URECV
OBJ->
DROP
>>
COMMENTS
USEND and URECV do not require any setup (except maybe
flag #1).
USEND and URECV are quiet. They do not display what is
being sent. If the data transfer arrow is blinking, then
everthing is okay.
USEND and URECV do not do packet checks like the built in
SEND program (and TSEND). So, don't move the HP48's once
you start the transfer.
URECV does a checksum check, so any object is sure to be
the same as the object that was sent.
With USEND, there is no longer any need to store a library
in a variable to send it. Just put the library on the stack
and send it. It will be received on the stack of the receiving
HP48 and can then be stored in the proper port with no
variable to purge.
Thanks to Detlef Mueller for his RPL and library tools,
without which these programs would not be.
Any comments, questions, or suggestions send email to:
kirkland@ee.utah.edu
Dan Kirkland
END_DOC
BEGIN_UU usnd3.uue
begin 600 usnd3.lib
M2%!(4#0X+4I`*Z"6`!!54TY$("`Z,RXP+#DT)T1+$*(VBP```,"'``4`T-D"
M$2D@:@`)=[`2`\PM``(`,8*?7S'XCQL0`]ADU=+9`A$I`%@"[S]`DR\>%L/<
M`E(`@+]Y!K$:`3!`40R!/%!1#*'5YT$60RU1#/@5$8!/U`'XY1"`'<XE*S'`
MW`*H`(#?]0-@_,&$OWD&<1ET^'Y9T`;6,L#X?5L`%T1A%$?X`AH&1R$H@I$O
M.$+@%D1A-#$5Q&73,C!!%$834$$<@6`M`X;?MP5Q&71!!!>"087]9@.=+5!.
M,2IQT-D"PD\VC6&D3J"#8RLQP"EE1`ZS$@.=+4#D,/D_4$XQ*G'0V0+"3S:-
M8:1.H(-C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`>:&X?AY
M6Q`1,1(3<#&<`AX`*""U1#?C29Q`!08$G`MC9(#8B`Y(N(&H"@!P'6#*P
M$@,T<_!=!6=`P,%ADBX@:@*P$@.X3M#9`I(N(&H&$.T$*S$@Z0*B9@`K,>"D
M`B@`<-+_:/F_D?_:^(^"_ZGW_W?_3BH@"```````````````00``````````
M````````````````````````````(P!04#55Y$0$``554D5#5@'@`0`4`/"A
!"0``
`
end
END_UU
BYTES: # E39Fh 1207.5
BEGIN_ASC usnd3.asc
%%HP: T(1);
"04B20A6900015535E4440202A333E203C293437244B4012A63B80000000C7800
50000D9D20119202A60090770B2130CCD20020001328F9F5138FF8B101308D46
5D2D9D201192008520FEF30439F2E1613CCD20250008FB97601BA110030415C0
18C30515C01A5D7E146134D215C08F511108F44D108F5E0108D1EC52B2130CCD
208A0008FD5F3006CF1C48FB97601791478FE7950D606D230C8FD7B500714416
41748F20A1607412822819F283240E6144164313514C563D2303144164310514
C11806D23068FD7B50179147144071281458DF6630D9D205E413A2170D9D202C
F463D8164AE40A3836B2130C925644E03B2130D9D2044E039FF305E413A2170D
9D202CF463D8164AE40A3836B213044230B213082A6100D9D20E1A81E5E40D9D
2029E202A6500C631311920000603C370B3313442307A226CB916D9D20E81564
4E03C0126F0046B2130E34244337039916D9D201192020C00A3836B21302A170
B204029E202A630088130B2040508038F336D9D2032230CCD20520008FC15231
301691421001641428DBE726EF11607C46C6816D9D2029E202A6300881304495
030A50BBF06A3D36D9D201192060C00A3836B213062726FEF30747262A170D9D
204A832DA916D9D2027F067F436B2130BF552D9D2051126CB916D9D209EB5051
B50B2130635818DA16D9D202C12675140487352FA30CB92630126439F2B21304
39F2B21309AF1632230DA12657B30019167F43618A30B2130EE170D9D2040926
74726FB7618DA166545684456EE250EF1164E76139150B21305E17039916D9D2
01192071C00A3836B2130A211631581B2130D9D205923043C46C6816D9D2029E
202A6300CCD20120001431361301691421341418D465D218A30B2130FD5502A1
702C2308F336D9D2082E46AB4268813029E202A63007EE0667326CAF0621E26B
21305E17062726FEF3043603B21302C2304495030A508DF0691D3059230FDD36
D9D201192060C00A3836B213044230B21305E17085230B21308BE40D9D2029E2
02A66001DE40B213029E202A6600B213082A6000D9D205AA81E5E40D9D2029E2
02A6500E8C463C3708725644E0320F04B3313442307A226CB916D9D20C0126F0
046B21304337039916D9D201192020C00A3836B2130D9D20442729FF30F6A369
FF3087735CB9269FF30FA450D7ED5B21303C370D9D20BF552D9D209FF3087735
B3A1650C26C2A1666F609EB50BB726F6E300CA302C230AD5265923029E202A64
009FF30120403375006556EE25029E202A62004423029E202A6200B2130B2130
D9D20AD2A12C23020950B2040CD6365923057B307472629E202A640029E202A6
2003991629E202A6200FEF30756602A1702C230CCD20990008FB9760143130D8
8F91030174143131174143C834EF100CA141132E08428B670D6852D410106E68
1E8F97B5011113213107068FC076007808A080D215D08F2D760110141872208D
9D0263223029E202A62008C17085230B213043370FD55076040C1C1629E202A6
200B21308BE40D9D2029E202A66001DE40B213029E202A6600B2130E4A208200
072DFF869FFB19FFAD8FF828FF9A7FFF77FFE4A2028000000000000000000000
0014000000000000000000000000000000000000000000000000000000000032
00050553554E444000505525543465100E100041000F1A9F93E"
END_ASC